

********************************
* Standard Stata Configuration *
********************************
clear all
set mem 999m
capture log close
set logtype text
cap cd "C:/Users/Jordan.Becker/Desktop/GD/2019_Research/nordics"
log using "log/nordics_figure_tbd.log", replace
set more off


********************
* Analyze the Data *
********************
#delimit;
use "dta\nordics", clear;
sort ccode year;
xtset ccode year;

*FIGURE 1: TIME SERIES TRANSATLANTIC BURDEN SHARING*
preserve;
twoway(tsline contribution if countryname=="Estonia", lwidth(thick) lcolor(navy))
	  (tsline contribution if countryname=="Latvia", lwidth(thick) lcolor(green))
	  (tsline contribution if countryname=="Lithuania", lwidth(thick) lcolor(black))
	  (tsline contribution if countryname=="Poland", lwidth(thick) lcolor(maroon))if year>=2005, scheme(sj)xline(2014)
	  xtitle("") xlab(2004(1)2018, labsize(tiny) angle(45)) ylab(.2(.1)1.35, 
	  labsize(small)) ytitle("Share of GDP Devoted to '3C's' Defense Spending", size(small) margin(medium))
	  legend(rows(2) size(tiny) label(1 Estonia)  label (2 Latvia) label(3 Lithuania) label(4 Poland));
graph save output\FigureTBD_contributions.gph, replace;
restore;


